package cn.humaohua.study.yanmo_design_pattern.ch12.v3;

public class Watcher implements WatcherObserver {
    private String job;

    @Override
    public void update(WaterQualitySubject subject) {
        System.out.println(job + "接收到通知，当前的污染级别是：" + subject.getPolluteLevel());

    }

    @Override
    public void setJob(String job) {
        this.job = job;

    }

    @Override
    public String getJob() {
        return this.job;

    }

}
